import request from '@/common/js/request.js'
export default {
	// 分页查询热门问答列表
	getHotList(current = 1, size = 20) {
		return request({
			url: '/question/api/question/hot',
			method: 'POST',
			data: {
				current,
				size
			}
		})
	},

	// 分页查询最新问题列表
	getNewList(current = 1, size = 20) {
		return request({
			url: '/question/api/question/new',
			method: 'POST',
			data: {
				current,
				size
			}
		})
	},

	// 分页查询等待回答列表
	getWaitList(current = 1, size = 20) {
		return request({
			url: '/question/api/question/wait',
			method: 'POST',
			data: {
				current,
				size
			}

		})
	}
}
